<extend name="Common@Layout:layui-admin" />
<block name="title">
    <title>编辑用户</title>
</block>
<block name="style">
    <style>
        .layui-fixbar {
            display: none;
        }
    </style>
</block>

<block name="main">
<!--php获取数据-->
<php>
	$schools = D('Schools')->where('state=1')->getField('sid,title');
</php>   
  	<form action="/admin/users/upload_excel" method="post" class="validator_form layui-form" enctype="multipart/form-data" style="margin: 40px;">
	 	<div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">选择学校：</label>
                <div class="layui-input-inline" style="width:190px;">
	              	<select name="sid" lay-search>
	              		<option value="">选择学校</option>
	                    <foreach name="schools" item="vo" key="k">
	                    	<option value="{$k}">{$vo}</option>
	                    </foreach>
	                </select>
	            </div>
            </div>
        </div>
       	<div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">选择文件：</label>
				<div class="layui-input-inline" style="line-height:38px;width: auto;">
					<input class="" type="file" name="file" id="file" />
				</div>
            </div>
            <div class="layui-inline">
				<div class="layui-input-inline" style="line-height:38px;width: auto;">
					<a href="/Admin/Users/downexcel" class="layui-btn layui-btn-normal layui-btn-small">模板下载</a>
				</div>
            </div>
        </div>		
		<div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" type="submit" name="submit">开始上传</button>
            </div>
        </div>		
	</form>

</block>


<block name="script">
    <script>

 
 
    </script>
</block>